import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    //四大主要页面
    { path: '/', name: 'Index', component: () => import('@/views/Index.vue') },
    { path: '/cut_order', name: 'CutOrder', component: () => import('@/views/CutOrder.vue') },
    { path: '/room_order', name: 'RoomOrder', component: () => import('@/views/RoomOrder.vue') },
    { path: '/mine', name: 'Mine', component: () => import('@/views/Mine.vue') },
  ]
})
